import { RouteRecordRaw } from 'vue-router';

const WEBVIEW_META = {
	isLink: '',
	isHide: true,
	isAffix: false,
	isIframe: false,
};

/**
 * 建议：路由 path 路径与文件夹名称相同，找文件可浏览器地址找，方便定位文件位置
 * isAuth：是否需要登录
 * isFixed：网站端顶部导航是否悬浮，透明，不占位
 */
 export const webviewRoutes: Array<RouteRecordRaw> = [
    {
		path: '/web',
		component: () => import('/@/views/webview/layout/index.vue'),
		meta: WEBVIEW_META,
		children: [
            {
                path: 'login',
				name: '网站登录',
				component: () => import('/@/views/webview/login/index.vue'),
				meta: {
					isAuth: false,
					isFixed: false,
				},
            },
            {
				path: 'index',
				name: '网站首页',
				component: () => import('/@/views/webview/home/index.vue'),
				meta: {
					isFixed: true,
					isAuth: false,
					...WEBVIEW_META,
				},
			}
        ],
	},
 ]